include_directories(
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_BINARY_DIR}/gen # includes version.h
  )

file(GLOB XRT_EDGE_TOOLS_XBUTIL_FILES
  "*.h"
  "*.cpp"
  )

add_executable(xbutil ${XRT_EDGE_TOOLS_XBUTIL_FILES})

target_link_libraries(xbutil
  xrt_core_static
  xrt_coreutil_static
  pthread
  rt
  boost_filesystem
  boost_system
  uuid
  ${CURSES_LIBRARIES}
  )

install (TARGETS xbutil RUNTIME DESTINATION ${XRT_INSTALL_DIR}/bin)
